import {
  VEHICLE_TABLE_LIST_EXPOR,
  VEHICLE_TABLE_ASSOCIATION,
  TRIP_STATISTICS,
  OPERATION_STATISTICS,
  TRIP_DETAILS,
  IGNITION_DETAILS,
  OPERATION_DETAILS
} from "./api";
import { METHOD, request } from "@/utils/request";

//车辆运行统计 列表的导出
export async function downloadCarInfo(params) {
  return request(VEHICLE_TABLE_LIST_EXPOR, METHOD.POST, params)
}

//车辆运行统计 车辆选择提示
export async function carNumAassociation(params) {
  return request(`${VEHICLE_TABLE_ASSOCIATION}/${params}`, METHOD.GET)
}
// 车辆运行统计列表 
export async function operationStatistics(params) {
  return request(`${OPERATION_STATISTICS}`, METHOD.POST, params)
}
// 车辆行程统计列表
export async function tripStatistics(params) {
  return request(TRIP_STATISTICS, METHOD.POST, params)
}
// 行程明细详情
export async function tripDetails(params) {
  return request(TRIP_DETAILS, METHOD.POST, params)
}
// 点火明细详情
export async function ignitionDetails(params) {
  return request(IGNITION_DETAILS, METHOD.POST, params)
}
// 运行明细详情
export async function operationDetails(params) {
  return request(OPERATION_DETAILS, METHOD.POST, params)
}